#!/usr/bin/env bash
set -e

if [ $# != 2 ]; then
  echo "param num wrong! $#"
  exit 1
fi

apps="interface activity map ugaming-web pay admin gateway zipkin registry"

for app in $apps; do
    helm upgrade $app-$1-$2 -f apps/$app/$1.yaml spring-cloud-app
done